package cn.com.surker.order.dao;

import cn.com.surker.order.entity.WechatOrder;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 微信下单已下单数据 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2022-04-13
 */
public interface WechatOrderDao extends BaseMapper<WechatOrder> {

	Page<WechatOrder> selectOrderPage(Page<WechatOrder> page, @Param(Constants.WRAPPER) Wrapper<WechatOrder> queryWrapper);

	/**
	 * 统计手机下单方量
	 * @param orgId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	Double sumPlanStere(Long orgId, String startTime, String endTime);

	/**
	 * 统计智能订单数量
	 * @param orgId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	Integer sumOrder(Long orgId, String startTime, String endTime);

}
